package com.mall.business.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 拼团对象 t_pink
 *
 * @author ruoyi
 * @date 2025-04-02
 */
@Data
@TableName(value = "t_pink")
@EqualsAndHashCode(callSuper = true)
public class TPink extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;
    /**
     * "商品Id"
     */
    @Excel(name = "商品Id")
    private String productId;
    /**
     * "拼团活动Id"
     */
    @Excel(name = "拼团活动Id")
    private String ptActiveId;
    /**
     * "拼团人数"
     */
    @Excel(name = "拼团人数")
    private Integer peopleNum;
    /**
     * "开始时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * "结束时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


    /**
     * "状态1进行中2已完成3未完成"
     */
    @Excel(name = "状态1进行中2已完成3未完成")
    private String status;
    /**
     * "团长Id"
     */
    @Excel(name = "团长Id")
    private String teamId;

    /**
     * "用户昵称"
     */
    @TableField(exist = false)
    private  String nickName;

    /**
     * "头像"
     */
    @TableField(exist = false)
    private  String avatar;

    /**
     * "还差几人"
     */
    @TableField(exist = false)
    private  Integer count;

    /**
     * "是否在团内"
     */
    @TableField(exist = false)
    private  Integer userBool;

    /**
     * "状态集合"
     */
    @TableField(exist = false)
    private List<String> statusList;



    /**
     * "当前用户Id"
     */
    @TableField(exist = false)
    private String currUserId;



}
